<!-- 我的 -->
<template>
	<view class="container">
		<!-- 背景图 -->
		<view class="user-bg">
			<image :src="icon.bg" mode="widthFix"></image>
		</view>

		<!-- 用户信息 -->
		<view class="row-between user-block2">
			<view class="row-between" style="margin-left: 45upx;" @click="gotoPersonInfo">
				<image style="width: 120upx;height: 120upx;border-radius: 50%;" :src="imgSite + userInfo.baseInfo.headSculpture"></image>
				<view style="margin-left: 30upx;">
					<view class="column-start-start">
						<text style="font-size: 32upx;font-weight: bold;color: #FFFFFF;margin-bottom: 21upx;">{{ userInfo.baseInfo.nickName?userInfo.baseInfo.nickName:'未设置'}}</text>
						<view class="row-div">
							<image style="height: 34upx;" :src="imgSite + userInfo.baseInfo.levelLogo" mode="heightFix"></image>
							<view class="row-div haveRealName" v-if="userInfo.baseInfo.confirmation == 20">
								<image src="../../static/assets/shiming-my.png" style="width: 18upx;height: 20upx;"></image>
								<view style="font-size: 22upx;color: #FFFFFF;margin-left: 8upx;">已实名</view>
							</view>
						</view>
					</view>
				</view>
			</view>
			<uni-icons @click="gotoPersonInfo" style="margin-right: 33upx;" type="arrowright" size="12" color="#FFFFFF" />
		</view>

		<!-- 用户信息 -->
		<!-- 		<view class="user-block">
			<view class="userBaseInfo">
				<view class="baseInfo" @click="gotoPersonInfo">
					<image class="wx-img-url" :src="imgSite + userInfo.baseInfo.headSculpture"></image>
					<view>
						<view class="nickNameBindIcon">
							<text class="wx-name">{{ userInfo.baseInfo.nickName?userInfo.baseInfo.nickName:'未设置'}}</text>
							<image v-if="userInfo.baseInfo.boundWx == 20" :src="icon.vx" class="wx_icon"></image>
						</view>
						
						会员图标
						<view class="vip" v-if="userInfo.baseInfo.level">
							<image :src="imgSite + userInfo.baseInfo.levelLogo" mode="aspectFit"></image>
						</view>
					</view>
				</view>
				<view class="qrcode" @click="gotoOtherPage('/pagesAccount/extension/extension?nickName='+userInfo.baseInfo.nickName)" v-if="userInfo.isPromote == '1'">
					<view class="code">
						<image :src="icon.tuiguangma"></image>
						推广码
					</view>
				</view>
			</view>

			
			用户部分信息
			<view class="userInfoCount user-statistics">
				<view class="statistics" @click="gotoOtherPage('/pagesUser/favourite')">
					<view class="number">{{ userInfo.gz_number }}</view>
					<view class="name">关注</view>
				</view>
				<view class="statistics" @click="toCardPack()">
					<view class="number">
						{{userInfo.kb_number}}
					</view>
					<view class="name">卡包</view>
				</view>
				<view @click="gotoMyBankPage" class="statistics">
					<view class="number">{{ userInfo.yhk_number }}</view>
					<view class="name">银行卡</view>
				</view>
				<view class="statistics" @click="toCoupon()">
					<view class="number">{{ userInfo.yhq_number }}</view>
					<view class="name">优惠券</view>
				</view>
			</view>
			<image :src="icon.logo1" class="bg-logo1"></image>
			<image :src="icon.logo2" class="bg-logo2"></image>
			<image :src="icon.logob" class="bg-logob"></image>
		</view> -->


		<!-- 订单信息 -->
		<view class="cover-container">
			<!-- 我的订单 -->
			<view class="myOrder-view">
				<view class="row-between" style="color: #333333;margin-bottom: 48upx;">
					<text style="font-size: 28upx;">我的订单</text>
					<text style="font-size: 24upx;" @click="gotoOrderPage('01')">查看全部 <uni-icons type="arrowright" size="12" color="#333333"></uni-icons></text>
				</view>
				<view class="row-between myOrder-section">
					<view class="column-between order-item " @click="gotoOrderPage('02')">
						<image class="order-image" :src="icon.daifukuan"></image>
						<text>待付款</text>
						<uni-badge v-if="orderCount.waitPay" class="myBadge" :text="orderCount.waitPay > 99 ? '99+' : orderCount.waitPay"
						 type="warning" size="small" />
					</view>
					<!-- 	<view class="column-between order-item" @click="gotoOrderPage('03')">
						<image class="order-image" :src="icon.daifahuo"></image>
						<text>待发货</text>
						<uni-badge v-if="orderCount.recipient" class="myBadge" :text="orderCount.recipient > 99 ? '99+' : orderCount.recipient" type="warning" size="small" />
					</view> -->
					<view class="column-between order-item" @click="gotoOrderPage('04')">
						<image class="order-image" :src="icon.daishouhuo"></image>
						<text>待收货</text>
						<uni-badge v-if="orderCount.recipient" class="myBadge" :text="orderCount.recipient > 99 ? '99+' : orderCount.recipient"
						 type="warning" size="small" />
					</view>
					<view class="column-between order-item" @click="gotoOrderPage('08')">
						<image class="order-image" :src="icon.yiwancheng"></image>
						<text>已完成</text>
						<!-- <uni-badge v-if="orderCount.evaluate" class="myBadge" :text="orderCount.evaluate > 99 ? '99+' : orderCount.evaluate" type="warning" size="small" /> -->
					</view>
					<view class="column-between order-item" @click="gotoOrderPage('08')">
						<image class="order-image" src="../../static/images/user/diapingjia.png"></image>
						<text>待评价</text>
						<uni-badge v-if="orderCount.evaluate" class="myBadge" :text="orderCount.evaluate > 99 ? '99+' : orderCount.evaluate" type="warning" size="small" />
					</view>
					<view class="column-between order-item" @click="toAfterSaleList()">
						<image class="order-image" :src="icon.shouhou"></image>
						<text>售后退款</text>
						<uni-badge v-if="afterSaleCount" class="myBadge" style="right: 6upx;" :text="afterSaleCount > 99 ? '99+' : afterSaleCount" type="warning"
						 size="small" />
					</view>
					<!-- <image class="orderSplit" :src="icon.orderSplit" mode=""></image> -->
				</view>
			</view>

			<image @click="gotoOtherPage('/pagesAccount/extension/extension')" :src="icon.banner" style="width: 689upx;height: 138upx;" />

			<!-- 用户资产 -->
			<!-- <view class="tj-sction" style="position: relative;">
				<view class="tj-item" @click="gotoOtherPage('/pagesAccount/waterCoupon/balance')">
					<view class="num">{{ userInfo.sj_num }}</view>
					<view class="txt">水券</view>
				</view>
				<view class="tj-item" @click="gotoOtherPage('/pagesAccount/balance')">
					<view class="num">{{ userInfo.ye_num }}</view>
					<view class="txt">余额</view>
				</view>
				<view class="tj-item" @click="gotoOtherPage('/pagesAccount/integral')">
					<view class="num">{{ userInfo.jf_num }}</view>
					<view class="txt">积分</view>
				</view>
				<view class="tj-item" @click="gotoGiftCard()">
					<view class="num last-child">
						{{ userInfo.lpk_num || 0 }}
					</view>
					<view class="txt last-child" style="border: none;">礼品卡</view>
				</view>
				<image :src="icon.bgcard" class="bg-card"></image>
			</view> -->

			<!-- 动态功能 -->
			<view v-if="dynamicMenus && dynamicMenus.length" class="user-serve">
				<view class="user-statistics">
					<view @click="resourceClick(item)" v-for="(item, index) in dynamicMenus" :key="index" class="statistics">
						<image class="serve-icons" :src="imgSite + item.bannerAddress"></image>
						<view class="serve-name">{{item.bannerDesc}}</view>
					</view>
				</view>
			</view>

			<!-- 固定功能 -->
			<view id="staticMenus" class="user-serve">
				<view class="user-statistics">
					<view class="statistics" @click="gotoOtherPage('/pages/user/myFriends/myFriends')">
						<image class="serve-icons2" :src="icon.haoyou"></image>
						<view class="serve-name">我的好友</view>
					</view>
					<view @click="gotoOtherPage('/pagesUser/msgCenter')" class="statistics">
						<image class="serve-icons2" :src="icon.xiaoxi"></image>
						<view class="serve-name">消息中心</view>
						<view v-if="noticeTipCount || $store.state.msgNumber" class="msgCount">
							{{noticeTipCount + $store.state.msgNumber>99 ? '99+' : noticeTipCount + $store.state.msgNumber}}
						</view>
					</view>
					<view class="statistics" @click="gotoOtherPage('/pagesUser/myEnshrine')">
						<image class="serve-icons2" :src="icon.shoucang"></image>
						<view class="serve-name">我的收藏</view>
					</view>
					<view class="statistics" @click="gotoInvoicePage()">
						<image class="serve-icons2" :src="icon.fapiao"></image>
						<view class="serve-name">我的发票</view>
					</view>
					<view class="statistics" @tap="toAddress">
						<image class="serve-icons2" :src="icon.dizhi"></image>
						<view class="serve-name">收货地址</view>
					</view>
					<view @click="gotoOtherPage('/pages/detail/commonProblem/commonProblem')" class="statistics">
						<image class="serve-icons2" :src="icon.lianxi"></image>
						<view class="serve-name">常见问题</view>
					</view>
					<view class="statistics" @click="toCoupon">
						<image class="serve-icons2" :src="icon.quanbao"></image>
						<view class="serve-name">我的券包</view>
					</view>
					<view @click="gotoOtherPage('/pagesUser/set')" class="statistics">
						<image class="serve-icons2" :src="icon.setting"></image>
						<view class="serve-name">系统设置</view>
					</view>
					<!-- <view class="statistics" @click="gotoInvoicePage()">
						<image class="serve-icons2" :src="icon.fapiao"></image>
						<view class="serve-name">我的发票</view>
					</view>
					<view class="statistics" @click="gotoOtherPage('/pagesAccount/extension/extension?nickName='+userInfo.baseInfo.nickName)" v-if="userInfo.isPromote == '1'">
						<image class="serve-icons2" :src="icon.tuiguang"></image>
						<view class="serve-name">推广奖励</view>
					</view>
					<view class="statistics" @click="toRichtext('3')">
						<image class="serve-icons2" :src="icon.huiyuanjieshao"></image>
						<view class="serve-name">会员介绍</view>
					</view>
					<view @click="gotoOtherPage('/pagesUser/helpService')" class="statistics">
						<image class="serve-icons2" :src="icon.bangzhu"></image>
						<view class="serve-name">帮助与客服</view>
					</view>
					<view @click="gotoDistributorPage()" class="statistics">
						<image class="serve-icons2" :src="icon.distributor"></image>
						<view class="serve-name">分销商</view>
					</view> -->
				</view>
			</view>
		</view>

		<!-- 推荐商品 -->
		<!-- <view v-if="goodsList.length" class='user-recommend'>
			<image :src="icon.left"></image>
			<view class="recomText">为您推荐</view>
			<image :src="icon.right"></image>
		</view> -->
		<!-- <view v-if="goodsList.length" style="padding:0 36rpx 125rpx 36rpx;">
			<goodList :list='goodsList'>
			</goodList>
		</view> -->
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex';

	import goodList from '@/components/goodList/goodList';

	export default {
		components: {
			goodList
		},
		data() {
			return {
				icon: {
					haoyou: '/static/assets/haoyou.png',
					shoukuan: '/static/assets/shoukuan.png',
					shoucang: '/static/assets/shoucang.png',
					fapiao: '/static/assets/fapiao.png',
					dizhi: '/static/assets/dizhi.png',
					lianxi: '/static/assets/lianxi.png',
					quanbao: '/static/assets/quanbao.png',
					setting: '/static/assets/setting.png',
					bg: '/static/images/user/bg.png',
					vx: '/static/images/user/vx.png',
					vip: '/static/images/user/vip.png',
					tuiguangma: '/static/images/user/tuiguangma.png',
					logo1: '/static/images/user/logo1.png',
					logo2: '/static/images/user/logo2.png',
					logob: '/static/images/user/logo-b.png',
					daifukuan: '/static/images/user/daifukuan.png',
					daifahuo: '/static/images/user/daifahuo.png',
					diapingjia: '/static/images/user/diapingjia.png',
					shouhou: '/static/images/user/shouhou.png',
					quanbudingdan: '/static/images/user/quanbudingdan.png',
					bgcard: '/static/images/user/bgcard.png',
					dingshui: '/static/images/user/dingshui.png',
					qiandao: '/static/images/user/qiandao.png',
					lingquan: '/static/images/user/lingquan.png',
					zhuanpan: '/static/images/user/zhuanpan.png',
					miaosha: '/static/images/user/miaosha.png',
					pintuan: '/static/images/user/pintuan.png',
					yushou: '/static/images/user/yushou.png',
					kanjia: '/static/images/user/kanjia.png',
					wodepintuan: '/static/images/user/wodepintuan.png',
					tuiguang: '/static/images/user/tuiguang.png',
					huiyuanjieshao: '/static/images/user/huiyuanjieshao.png',
					bangzhu: '/static/images/user/bangzhu.png',
					xiaoxi: '/static/images/user/xiaoxi.png',
					shouhuodizhi: '/static/images/user/shouhuodizhi.png',
					xitongshezhi: '/static/images/user/xitongshezhi.png',
					distributor: '/static/images/user/distributor.png',
					left: "/static/images/detail/left.png",
					right: "/static/images/detail/right.png",
					orderSplit: '/static/images/user/orderSplit.png',
					yiwancheng: '/static/assets/yiwancheng.png',
					daishouhuo: '/static/assets/daishouhuo.png',
					banner: '/static/assets/invite.png',
				},
				userInfo: {
					baseInfo: {},
					gz_number: 0,
					kb_number: 0,
					yhk_number: 0,
					yhq_number: 0,
					sj_num: '',
					ye_num: '',
					jf_num: '',
					lpk_num: '',
					isPromote: ''
				},
				noticeTipCount: 0,
				//订单数量统计
				orderCount: {},
				afterSaleCount: 0,
				//推荐商品列表
				goodsList: [],
				//动态功能
				dynamicMenus: []
			};
		},
		onLoad() {
			//推荐商品
			this.getRecomGoodsList();
		},
		onShow() {
			this.$api.globalUtil.setTabBarBadge();
			if (!this.hasLogin) {
				uni.navigateTo({
					url: '/pagesUser/login/userLogin'
				});
			} else {
				this.getUserInfo();
				this.getOrderCounts();
				this.getAfterSaleCount();
				this.getNoticeTipCount();
				this.getDynamicMenus();
			}
		},
		computed: {
			...mapState(['hasLogin', 'imgSite'])
		},
		methods: {
			// 获取用户信息
			getUserInfo() {
				let that = this;
				that.$api.globalUtil.getUserInfo(that, function(res) {
					that.userInfo.baseInfo = res.data.response;
				});

				that.$api.globalUtil.requestAjax({
					url: '/AccountBalanceApi/findAccountBalanceByCustomerIdForApi',
					method: 'POST',
					success: function(res) {

						that.userInfo.sj_num = that.changeTwoDecimal_f(res.data.response.waterBalance / 100);
						that.userInfo.ye_num = that.changeTwoDecimal_f(parseInt(res.data.response.moneyBalance + res.data.response.consumeBalance) /
							100);
						that.userInfo.jf_num = res.data.response.pointBalance;
						that.userInfo.lpk_num = that.changeTwoDecimal_f(res.data.response.giftCardBalance / 100);
					}
				});
				that.$api.globalUtil.requestAjax({
					url: '/CustomerApi/userStatisticsCountApi',
					method: 'POST',
					data: {},
					success: function(res) {
						console.log(res.data.response);
						that.userInfo.gz_number = res.data.response.attentionNum;
						that.userInfo.kb_number = res.data.response.cardNum;
						that.userInfo.yhk_number = res.data.response.bankNum;
						that.userInfo.yhq_number = res.data.response.receiveNum;
						that.userInfo.isPromote = res.data.response.isPromote;
					}
				});
			},
			//消息通知数量
			getNoticeTipCount() {
				let that = this;
				this.$api.globalUtil.requestAjax({
					url: '/customerNoticeApi/customerNoticeUnreadCountApi',
					method: 'POST',
					data: {
						cnType: "",
						cnStatus: '0'
					},
					success: function(res) {
						that.noticeTipCount = res.data.response;
					}
				});
			},
			//订单数量统计
			getOrderCounts() {
				var that = this;
				that.$api.globalUtil.requestAjax({
					url: '/OrderApi/getOrdersNumByOrderFinalStatusForApi',
					method: 'POST',
					success: function(res) {
						that.orderCount = {
							"waitPay": res.data.response.waitPayNum || 0,//待支付数量
							"recipient": res.data.response.pendingDeliveriedNum || 0,//已发货数量	
							"evaluate": res.data.response.evaluateNum || 0,// 评论数量数量
							"afterSale": res.data.response.waitPayNum || 0,
						};
					},
				});
			},
			//售后退款订单统计
			getAfterSaleCount() {
				var that = this;
				that.$api.globalUtil.requestAjax({
					url: '/OrderApi/getReturnOrdersNumByOrderFinalStatusForApi',
					method: 'POST',
					data: {
						orderReturnFinalStatus: '02'
					},
					success: function(res) {
						that.afterSaleCount = res.data.response
					},
				});
			},
			// 小数后两位，补0
			changeTwoDecimal_f(x) {
				var f_x = parseFloat(x);
				if (isNaN(f_x)) {
					alert('function:changeTwoDecimal->parameter error');
					return false;
				}
				var f_x = Math.round(x * 100) / 100;
				var s_x = f_x.toString();
				var pos_decimal = s_x.indexOf('.');
				if (pos_decimal < 0) {
					pos_decimal = s_x.length;
					s_x += '.';
				}
				while (s_x.length <= pos_decimal + 2) {
					s_x += '0';
				}
				return s_x;
			},
			// 个人信息页面
			gotoPersonInfo() {
				uni.navigateTo({
					url: '/pagesUser/personInfo'
				});
			},
			// 我的银行卡
			gotoMyBankPage() {
				uni.navigateTo({
					url: '/pagesUser/bankCard/myCard'
				});
			},
			// 签到
			sign() {
				let that = this;
				that.$api.globalUtil.requestAjax({
					url: '/CustomerApi/signInGivePoints',
					method: 'POST',
					success: function(res) {
						uni.navigateTo({
							url: '/pagesAccount/signIn/sign?point=' + res.data.response.givingPoint
						});
					}
				});
			},
			// 卡包跳转
			toCardPack() {
				uni.navigateTo({
					url: '/pagesAccount/cardPack/cardList'
				});
			},
			// 我的发票
			gotoInvoicePage() {
				uni.navigateTo({
					url: '/pagesUser/invoice/center'
				});
			},
			// 优惠券跳转
			toCoupon() {
				uni.navigateTo({
					url: '/pagesAccount/coupon/coupon'
				});
			},
			// 售后退款
			toAfterSaleList() {
				uni.navigateTo({
					url: '/pagesGoods/afterSale/afterSaleList'
				});
			},
			// 我的地址
			toAddress() {
				uni.navigateTo({
					url: '/pagesUser/address/address'
				});
			},
			// 我的订单
			gotoOrderPage(orderStatus) {
				uni.setStorageSync('orderStatus', orderStatus);
				uni.navigateTo({
					url: '/pages/order/order'
				});
			},
			/*页面跳转*/
			gotoOtherPage(url) {
				uni.navigateTo({
					url
				});
			},
			//goto分销商
			gotoDistributorPage() {
				uni.navigateTo({
					url: '/pagesUser/distributor'
				});
			},
			//goto领券中心
			gotoGetCouponPage() {
				uni.navigateTo({
					url: '/pagesAccount/coupon/getCoupon'
				});
			},
			// 富文本
			toRichtext(type) {
				uni.navigateTo({
					url: '/pagesUser/userRichtext?type=' + type
				});
			},
			//推荐商品
			getRecomGoodsList() {
				var that = this;
				that.$api.globalUtil.getRecomGoodsList({}, function(res) {
					that.goodsList = res.data.response;
				});
			},
			//礼品卡
			gotoGiftCard() {
				uni.navigateTo({
					url: '/pagesAccount/giftCard/giftCard'
				});
			},
			//动态功能
			getDynamicMenus() {
				var that = this;
				that.$api.globalUtil.requestAjax({
					url: '/bannerApi/findBannerByTypeApi',
					method: 'POST',
					data: {
						terminal: '50',
						type: '25'
					},
					success: function(res) {
						if (res.data.success) {
							that.dynamicMenus = res.data.response;
						}
					}
				});
			},
			//点击跳转
			resourceClick(item) {
				this.$api.globalUtil.adJumpToOtherPage(item);
			}
		}
	}
</script>

<style lang="scss">
	page {
		overflow-x: hidden;
		background-color: #f5f5f5;
		min-height: 100%;
	}

	%flex-center {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	%section {
		display: flex;
		justify-content: space-around;
		align-content: center;
		background: #fff;
		border-radius: 10rpx;
	}

	.user-bg {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;

		image {
			width: 750upx;
			height: 464upx;
		}
	}

	.bg-logo1 {
		position: absolute;
		z-index: 2;
		top: 13rpx;
		left: 180rpx;
		width: 77rpx;
		height: 68rpx;
	}

	.bg-logo2 {
		position: absolute;
		z-index: 2;
		bottom: 15rpx;
		left: 94rpx;
		width: 92rpx;
		height: 81rpx;
	}

	.bg-logob {
		position: absolute;
		z-index: 1;
		bottom: 18rpx;
		right: 20rpx;
		width: 240rpx;
		height: 212rpx;
	}

	.bg-card {
		position: absolute;
		z-index: 1;
		bottom: 0;
		right: 0;
		width: 100%;
		height: 100%;
	}

	.user-block2 {
		top: 158upx;
		position: relative;
		z-index: 3;
		margin-bottom: 53upx;

		.haveRealName {
			width: 110upx;
			height: 34upx;
			border: 1px solid #FFFFFF;
			border-radius: 5upx;
			margin-left: 14upx;
		}
	}

	//用户基本信息
	.user-block {
		top: 150upx;
		position: relative;
		z-index: 3;
		background: white;
		margin: 0 auto;
		width: 690rpx;
		height: 328rpx;
		border-radius: 16rpx;
		box-shadow: 0px 4rpx 10rpx 0px rgba(68, 68, 68, 0.05);

		//关注、卡包、银行卡、优惠券
		.userInfoCount {
			position: absolute;
			bottom: 10rpx;
			width: 100%;
		}
	}

	.userBaseInfo {
		width: 100%;
		display: flex;
		font-size: 30rpx;

		image {
			width: 120rpx;
			height: 120rpx;
		}

		.baseInfo {
			padding-left: 50rpx;
			margin-top: -32rpx;
			width: 60%;

			.wx-img-url {
				border-radius: 50%;
			}

			.nickNameBindIcon {
				display: flex;
				align-items: center;

				.wx-name {
					font-weight: bold;
				}

				.wx_icon {
					margin-left: 8rpx;
					width: 32rpx;
					height: 27rpx;
				}
			}
		}

		.qrcode {
			display: flex;
			flex-direction: row-reverse;
			width: 40%;
			position: relative;
			z-index: 99;

			.code {
				margin-top: 34rpx;
				display: flex;
				align-items: center;
				color: white;
				font-size: 24rpx;
				border-radius: 27rpx 0 0 27rpx;
				justify-content: center;
				width: 157rpx;
				height: 54rpx;
				background: #FE5E49;

				image {
					height: 25rpx;
					width: 24rpx;
					margin-right: 10rpx;
				}
			}
		}


		//会员等级图标
		.vip {
			margin-top: 20rpx;
			color: #ffc000;
			border-radius: 5rpx;
			width: 145rpx;
			height: 36rpx;

			image {
				width: 145rpx;
				height: 36rpx;
			}
		}
	}

	.user-statistics {
		display: flex;
		flex-wrap: wrap;

		.statistics {
			margin-top: 16rpx;
			margin-bottom: 16rpx;
			width: 24.5% !important;
			height: 100rpx;
			text-align: center;
			padding-top: 12rpx;
			z-index: 9;

			.number {
				font-weight: bold;
				font-size: 29rpx;
			}

			.name {
				font-size: 26rpx;
			}
		}
	}

	.cover-container {
		background: $page-color-base;
		padding: 156rpx 30rpx;
		position: relative;
		background: #f5f5f5;
		padding-bottom: 20rpx;

		.arc {
			position: absolute;
			left: 0;
			top: -34rpx;
			width: 100%;
			height: 36rpx;
		}
	}

	.tj-sction {
		@extend %section;
		margin-top: 25rpx;
		width: 100%;

		.tj-item {
			@extend %flex-center;
			height: 140rpx;
			font-size: $font-sm;
			color: #75787d;
			width: 24.9%;
			padding-left: 29rpx;
		}

		.num {
			width: 100%;
			padding-bottom: 8rpx;
			font-size: 30rpx;
			font-weight: bold;
			color: black;
			z-index: 2;
			border-right: 2rpx solid#eee;
			padding-right: 30rpx;
		}

		.last-child {
			padding-right: 0;
			border: none;
		}

		.txt {
			z-index: 2;
			width: 100%;
			border-right: 2rpx solid#eee;
			padding-right: 30rpx;
		}
	}

	// 订单数量
	.myOrder-view {
		position: relative;
		background: #FFFFFF;
		border-radius: 10upx;
		z-index: 3;
		padding: 34upx;
		margin-bottom: 26upx;

		.myOrder-section {
			.order-item {
				position: relative;
				font-size: 24upx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;

				.order-image {
					width: 50upx;
					height: 50upx;
					margin-bottom: 16upx;
				}

				.myBadge {
					position: absolute;
					top: -15upx;
					right: -10upx;
					background-color: #FE5E49;
					line-height: 22px;
				}
			}

		}
	}

	.order-section {
		@extend %section;
		position: relative;

		.order-item {
			@extend %flex-center;
			width: 120rpx;
			height: 120rpx;
			border-radius: 10rpx;
			font-size: $font-sm;
			color: $font-color-dark;
			position: relative;
		}

		.yticon {
			width: 50rpx;
			height: 50rpx;
			margin-bottom: 20rpx;
		}

		.icon-shouhoutuikuan {
			font-size: 44rpx;
		}


		.msgCount {
			position: absolute;
			top: 0rpx;
			right: 24rpx;
			padding: 0 7rpx;
			min-width: 26rpx;
			width: auto;
			height: 26rpx;
			line-height: 26rpx;
			text-align: center;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #FFFFFF;
			background: #FE5E49;
			box-shadow: 0px 1px 4px 0px rgba(68, 68, 68, 0.2);
			border-radius: 26rpx;
		}

		.orderSplit {
			position: absolute;
			top: 0;
			right: 116rpx;
			width: 28rpx;
			height: 100%;
		}
	}

	// 固定功能
	.user-serve {
		background: white;
		margin-top: 24rpx;
		border-radius: 10rpx;
		color: #333333;
		padding: 0 0 40rpx;

		.statistics {
			position: relative;

			.msgCount {
				position: absolute;
				top: 0;
				right: 40rpx;
				padding: 0 7rpx;
				min-width: 30rpx;
				width: auto;
				height: 30rpx;
				line-height: 26rpx;
				text-align: center;
				font-size: 20rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
				background: #FE5E49;
				border: 2rpx solid rgba(255, 255, 255, 1);
				box-shadow: 0px 1rpx 4rpx 0px rgba(68, 68, 68, 0.2);
				border-radius: 30rpx;
			}
		}
	}

	.serve-icons {
		width: 50rpx;
		height: 50rpx;
	}

	.serve-name {
		font-size: 23rpx;
	}

	.serve-icons2 {
		width: 68rpx;
		height: 68rpx;
	}

	//为您推荐
	.user-recommend {
		display: flex;
		width: 100%;
		height: 120rpx;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		font-family: PingFang SC;
		color: rgba(51, 51, 51, 1);

		.recomText {
			margin: 0 16rpx;
		}

		image {
			width: 168rpx;
			height: 16rpx;
		}

		.line {
			margin: 0 20rpx;
			width: 76rpx;
			height: 1rpx;
			background: rgba(219, 219, 219, 1);
		}
	}

	.bottom-select {
		height: 98rpx;
		display: flex;
		align-items: center;
		flex-direction: row-reverse;
		position: fixed;
		bottom: 0;
		background: white;
		left: 0;
		width: 100%;
		z-index: 10;
		border-top: 1rpx solid #eee;

		.orderTotalFee {
			margin-left: 36rpx;
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #FE5E49;
			line-height: 98rpx;
		}

		.left-auto {
			margin-left: auto;
		}

		.gotoPay-btn {
			color: #FFFFFF !important;
			background: #FE5E49;
		}

		.bottom-btn {
			width: 194.4rpx;
			height: 70rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #666666;
			font-size: 30rpx;
			white-space: nowrap;
			border: 1rpx solid #ADADAD;
			margin-right: 28rpx;
			border-radius: 35rpx;

			&:first-of-type {
				margin-left: auto;
			}
		}

		.bottom-btn-colour {
			width: 194.4rpx;
			height: 70rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #FE5E49;
			font-size: 30rpx;
			white-space: nowrap;
			border: 1rpx solid #FE5E49;
			margin-right: 28rpx;
			border-radius: 35rpx;
		}
	}

	// 订单编号
	.orderLabel {
		color: #666666;
	}

	.orderValue {
		color: #333333;
	}

	/deep/.list-pages:last-of-type .good-message {
		border: 0;
	}

	//固定功能
	#staticMenus {
		.statistics {
			margin-top: 48rpx !important;
			margin-bottom: 0 !important;
			padding-top: 0 !important;
			height: auto !important;
		}
	}
</style>
